package main

import (
	"fmt"

	"github.com/zhangzj39/goini"
)

func main() {
	c, err := goini.NewFileConf("conf.ini")
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(c.String("app.app_mode"))
	fmt.Println(c.String("paths.data"))
	fmt.Println(c.String("server.protocol"))
	http_port, err := c.Int("server.http_port")
	if err != nil {
		panic(err)
	}
	fmt.Println(http_port)
	fmt.Println(c.String("server.enforce_domain"))
}
